package abc.secgroup.music_backend.entity.enumeration;

//资源中的资源类型枚举类
public enum ResourceType {
    MUSIC("音乐文件",true),
    TEXT("文本文件",false),
    VIDEO("视频文件",true),
    ACHIEVE("压缩文件",true),
    IMAGE("图像文件",true),
    OTHERS("其他类型文件",true);

    private String name;
    private boolean binFile;

    ResourceType(String name, boolean binFile){
        this.binFile = binFile;
        this.name = name;
    }


    @Override
    public String toString() {
        return this.name+(binFile?"(Bin)":"");
    }
}
